<extend name="desktop_default/template/user/base_user" />
<block name="area_header">
    <link rel="stylesheet" href="__CSS__/user/invite/style.css">
</block>

<block name="area_top">

</block>
<block name="user_top">

</block>
<block name="main_content">
    <div class="invite">
        <div class="user-tab">
            <a class="selected" href="javascript:void(0);">邀请有奖</a>
        </div>
        <div class="invite-content">
            <div class="invite-code"><span>{$idcode}</span></div>
            <p>{$tip}</p>
            <p>将您的邀请码<span>{$idcode}</span>分享给10个好友，您就可以升级成萌主，享受萌主待遇。您的好友也可以升级成萌主，但是需推广5个好友注册才能激活萌主功能。</p>
        </div>
        <div class="invite-hr"></div>
        <div class="invite-methon">
            <span>邀请链接：</span><input type="text" value="{:C('SITE_URL')}{:U('mengwu/account/register',array('invite'=>$idcode))}" readonly="readonly" id="text"><a href="javascript:void(0);" id="btn">复制</a>
        </div>
    </div>

</block>
<block name="area_footer">
<script type="text/javascript">
    window.onload=function(event){
        var button=document.getElementById("btn");
        button.onclick=function(event){
            document.getElementById("text").select();
            document.execCommand("copy",false,null);
        };
    };
</script>
</block>
